package com.springboot.blog.beans;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName(value = "blog_shop")
public class BlogShop implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer  id;

    @TableField(value = "shop_name")
    private String shopName;

    @TableField(value = "shop_content")
    private String shopContent;

    @TableField(value = "shop_price")
    private Double shopPrice;

    @TableField(value = "shop_image")
    private String shopImage;

    @TableField(fill= FieldFill.INSERT,value = "shop_time")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date shopTime;

    @TableLogic
    @TableField(fill = FieldFill.INSERT,value = "shop_delete")
    private Integer shopDelete;

}
